package com.tencent.cloud.uikit.widget.edittext;

import android.content.Context;
import android.util.AttributeSet;

import com.tencent.cloud.iov.util.PatternMatchingUtils;
import com.tencent.cloud.iov.util.ResourcesUtils;
import com.tencent.cloud.uikit.R;

public class PhoneMailEditText extends LineTwoEditText {

    /**
     * @param context
     * @param attrs
     */
    public PhoneMailEditText(Context context, AttributeSet attrs) {
        super(context, attrs);
        setTextColor(ResourcesUtils.getColor(R.color.text_color_primary));
        setTextFormat(PatternMatchingUtils.TELEPHONE_FORMAT);
        setmTextFormat2(PatternMatchingUtils.EMAIL_FORMAT);
    }
}
